<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:include="/shop/include :: header"></head>
<body>
	<form class="layui-form" action="" lay-filter="shop_supply_to_member_order-update-form" style="margin-top: 20px;">
		<input th:value="${session.formToken}" name="formToken" type="hidden" />
		<input name="id" th:value="${shopSupplyToMemberOrder.id}"
			type="hidden">
		<!--  -->
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">供应商订单号：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="supplyCode"
					th:value="${shopSupplyToMemberOrder.supplyCode}" name="supplyCode"
					placeholder="请输入供应商订单号">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">订单总编号：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="orderTotalCode"
					th:value="${shopSupplyToMemberOrder.orderTotalCode}" name="orderTotalCode"
					placeholder="请输入订单总编号">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">订单自编号：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="orderChildCode"
					th:value="${shopSupplyToMemberOrder.orderChildCode}" name="orderChildCode"
					placeholder="请输入订单自编号">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">供应商ID：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="supplyId"
					th:value="${shopSupplyToMemberOrder.supplyId}" name="supplyId"
					placeholder="请输入供应商ID">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">用户ID：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="memberId"
					th:value="${shopSupplyToMemberOrder.memberId}" name="memberId"
					placeholder="请输入用户ID">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">用户收货地址ID：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="memberAddressId"
					th:value="${shopSupplyToMemberOrder.memberAddressId}" name="memberAddressId"
					placeholder="请输入用户收货地址ID">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">订单金额：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="orderPrice"
					th:value="${shopSupplyToMemberOrder.orderPrice}" name="orderPrice"
					placeholder="请输入订单金额">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">运费：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="freight"
					th:value="${shopSupplyToMemberOrder.freight}" name="freight"
					placeholder="请输入运费">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">支付金额：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="payPrice"
					th:value="${shopSupplyToMemberOrder.payPrice}" name="payPrice"
					placeholder="请输入支付金额">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">订单状态 10.待支付 20.待发货30.已发货40.待评价 50.已完成60.已取消70无效订单：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="orderState"
					th:value="${shopSupplyToMemberOrder.orderState}" name="orderState"
					placeholder="请输入订单状态 10.待支付 20.待发货30.已发货40.待评价 50.已完成60.已取消70无效订单">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">确认收货时间：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="sureGoodsTime"
					th:value="${#dates.format(shopSupplyToMemberOrder.sureGoodsTime, 'yyyy-MM-dd HH:mm:ss')}"
					name="sureGoodsTime" placeholder="请输入确认收货时间">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">添加时间：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="createTime"
					th:value="${#dates.format(shopSupplyToMemberOrder.createTime, 'yyyy-MM-dd HH:mm:ss')}"
					name="createTime" placeholder="请输入添加时间">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">修改时间：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="updateTime"
					th:value="${#dates.format(shopSupplyToMemberOrder.updateTime, 'yyyy-MM-dd HH:mm:ss')}"
					name="updateTime" placeholder="请输入修改时间">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="deleteFlag"
					th:value="${shopSupplyToMemberOrder.deleteFlag}" name="deleteFlag"
					placeholder="请输入">
			</div>
		</div>
 		<div class="layui-form-item">
			<div class="layui-input-block">
				<button class="layui-btn" lay-submit="" lay-filter="shop_supply_to_member_order-update">立即提交</button>
			</div>
		</div>
	</form>
	<div th:include="/shop/include::footer"></div>
	<!-- 注意：如果你直接复制所有代码到本地，上述js路径需要改成你本地的 -->
	<script>
		layui.use([ 'layer', 'jquery', 'form', 'laydate' ], function() {
			var $ = layui.jquery;
			var laydate = layui.laydate;
			var layer = layui.layer;
			var form = layui.form;

			//日期时间选择器
           			laydate.render({
				elem : '#sureGoodsTime',
				type : 'datetime'
			});
 			laydate.render({
				elem : '#createTime',
				type : 'datetime'
			});
 			laydate.render({
				elem : '#updateTime',
				type : 'datetime'
			});
  
			//监听提交
			form.on('submit(shop_supply_to_member_order-update)', function(data) {
				//提交数据data.field
				ajaxPostLoad("/shop/supply_to_member_order/update", data.field);
				return false;
			});
		});
	</script>
</body>
</html>